package com.sweet.store;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.eventbus.EventBus;

/**
 * Created by sweet on 2019/1/29.
 * ---------------------------
 */
public class StoreVerticle extends AbstractVerticle {


  @Override
  public void start() throws Exception {
    super.start();

    vertx.executeBlocking(f -> {
      f.fail("Error vertx");
    }, r -> {
      if(r.succeeded()) {
        System.out.println(r.result());
      } else {
        r.cause().printStackTrace();
        System.out.println("Error: " + r.cause().getMessage());
      }
    });

  }
}
